unit ID3v2_DLL_Header;
//------------------------------------------------------------------------------//
// Copyright(C) 2006-2007 by Nguyen Nhat Dung (kenshin1101 it's my nick name :D)
// Email : kenshin1101@gmail.com
// Website : kenshin1101.googlepages.com
//------------------------------------------------------------------------------//

{
 License : Free for all ^^
 -----------------------------------------------------------
  Use :
   ReadTag -> GetTag -> SaveTag (if u want)
   ReadTag -> SetTag -> SaveTag
   RemoveTag
 -----------------------------------------------------------
 Note: Flags = 1 -> lpFileName is UNICODE , otherwise is ANSI
 GetTag/SetTag use
    Title, Artist, Album, Year, Track,
    Genre, Comment, Composer, OArtist, Copyright,
    URL, Encodeby, Lyric, KaraokLyric
    Image
 as tagname (upper case or lower case if u want)

 GetTag in case of Image the result will be PChar other is PWideChar
 SetTag in case of Image Value must be PChar
 Image is jpeg data (in tag, if it exists ^^)
 ----------------------------------------------------------
 Bug reports, Suggestions, Comments, etc...
 please post in Bass Forum : www.un4seen.com
}
interface

uses Windows;

const UNICODE = 1;
      mp3tagdll = 'ID3v2DLL.dll';


function ReadTag(lpFileName : Pointer; Flags : DWORD): BOOL; stdcall; external mp3tagdll;
function SaveTag: BOOL; stdcall; external mp3tagdll;
function RemoveTag(lpFileName : Pointer; Flags : DWORD): BOOL; stdcall; external mp3tagdll;

function GetTag(tagname : PChar) : Pointer; stdcall; external mp3tagdll;
procedure SetTag(tagname : PChar; Value : Pointer); stdcall; external mp3tagdll;

implementation

end.
